/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class Oximeter {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010070018';
    }

    get categoryName() {
        return '\u8840\u6c27\u4eea';
    }

    getBloodOxygen(params) {
        return command({
            method: 'getBloodOxygen',
            methodId: 'pUPQld0E',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getHeartRate(params) {
        return command({
            method: 'getHeartRate',
            methodId: 'pZgunZc9',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRecord(params) {
        return command({
            method: 'getRecord',
            methodId: 'pGoxIHvn',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setCleanRecord(params) {
        return command({
            method: 'setCleanRecord',
            methodId: 'ppAXPrhI',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStart(params) {
        return command({
            method: 'setStart',
            methodId: 'peH3fAFz',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default Oximeter;
